html {
  scroll-behavior: smooth;
}

.content-panel + .content-panel {
  border: unset;
}

.sl-markdown-content h2 {
  margin-bottom: 2rem;
}

.sl-container .sl-markdown-content ul li p {
  margin: 0;
}

.sl-markdown-content table {
  overflow: unset;
}

.sl-markdown-content table th,
.sl-markdown-content table td {
  white-space: nowrap;
  padding: 0.3rem 1rem 0.3rem 0;
  border: none;
}

.sl-markdown-content table thead {
  border-bottom: 1px solid var(--sl-color-gray-1);
}

.sl-markdown-content em {
  font-weight: bold;
}

.sl-markdown-content h2 code,
.sl-markdown-content h3 code {
  font-size: 0.9em;
  color: var(--sl-color-white);
}

.sl-markdown-content p code,
.sl-markdown-content ul code {
  white-space: nowrap;
  padding: 0 1px;
}

.sl-markdown-content a code {
  padding-left: 0;
  padding-right: 0;
}

.sl-markdown-content blockquote {
  border-inline-start-color: var(--sl-color-gray-1);
}

.sl-markdown-content section.columns.mt {
  margin-top: 3rem;
}

section.columns ul {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
  white-space: nowrap;
  margin-bottom: 3rem;
}

section.columns.min200 ul {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

section.columns.min300 ul {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

section.plugins li {
  margin: 0;
}

:root {
  .header {
    border-bottom-color: var(--sl-color-orange);
  }
}

:root[data-theme="light"] {
  .header {
    border-bottom-color: var(--sl-color-orange);
  }
}

:root[data-theme="dark"] .sl-markdown-content table td code {
  padding-left: 0;
}

.sl-markdown-content .sponsor {
  font-size: 2.5rem;
  text-align: center;
  margin: 4rem 0;
}

.sl-badge.caution,
.sl-badge.outline {
  --sl-color-bg-badge: transparent;
  --sl-color-border-badge: var(--sl-color-orange);
  color: var(--sl-color-white);
}

.sl-markdown-content .mw500 {
  max-width: 500px;
}

.logo-border {
  width: 200px;
  border: 2px solid var(--sl-color-white);
  border-radius: 40px;
}

.playground iframe {
  width: 100%;
  height: 600px;
  border: 1px solid var(--sl-color-orange);
}

.sl-markdown-content p + lite-youtube {
  border: 1px solid var(--sl-color-orange);
  margin-top: 2rem;
}

.sl-markdown-content .starlight-aside {
  margin-top: 2rem;
}

.sl-markdown-content p > img {
  margin: 2rem 0;
}

:root[data-theme="light"] {
  .logo-border {
    border-color: var(--sl-color-black);
  }
}

#starlight__search .pagefind-ui__result-title:not(:where(.pagefind-ui__result-nested *)):focus-within,
#starlight__search .pagefind-ui__result-nested:focus-within {
  .pagefind-ui__result-link,
  .pagefind-ui__result-excerpt,
  .pagefind-ui__result-excerpt mark {
    color: var(--sl-color-text-accent);
  }
}

:root[data-theme="light"] {
  #starlight__search .pagefind-ui__result-title:not(:where(.pagefind-ui__result-nested *)):focus-within,
  #starlight__search .pagefind-ui__result-nested:focus-within {
    .pagefind-ui__result-link,
    .pagefind-ui__result-excerpt,
    .pagefind-ui__result-excerpt mark {
      color: var(--sl-color-black);
    }
  }
}

.social-icons a:hover {
  opacity: 1;
  svg {
    color: var(--sl-color-bright-orange);
  }
}

.badges {
  margin: 4rem auto;
  /* biome-ignore lint/style/noDescendingSpecificity: they're different props, biome */
  p {
    display: flex;
    justify-content: center;
    gap: 1rem;

    a {
      border-bottom: none;
    }
  }
}

.projects {
  margin: 6rem auto;
}
